<!DOCTYPE html>
<!--解决idea thymeleaf 表达式模板报红波浪线-->
<!--suppress ALL -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 引入公用部分 -->
    <script th:replace="head::static"></script>
    <!-- 样式 -->
    <link th:href="@{/css/seller/seller.css}" rel="stylesheet" type="text/css"/>
</head>
<body>

               <!-- 表格主体 -->
               <table class="layui-hide" id="sellerTable" lay-filter="display"></table>
               <!-- 模板 -->
               <script type="text/html" id="sellerTableToolbar">
                    <div class="layui-btn-container">
						<button class="layui-btn layui-btn-sm" lay-event="addData">新增<i class="layui-icon layui-icon-add-1"></i></button>
						<button class="layui-btn layui-btn-sm" lay-event="importData">导入<i class="layui-icon layui-icon-add-1"></i></button>
                        <input type="text" id="queryBySellerName" name="queryBySellerName" autocomplete="off"
                               placeholder="请输入商户名称" class="layui-input layui-btn-sm">
                        <button id="queryBySellerNameBtn" class="layui-btn layui-btn-sm" lay-event="query">查询<i class="layui-icon layui-icon-search"></i></button>
                    </div>
                </script>
               <script type="text/html" id=sellerTableBar>
                    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
				{{#  if(d.contractFile != null){ }}
				<a class="layui-btn layui-btn-xs" lay-event="downFile">下载签约合同</a>
				{{#  } }}
                </script>
                
                <script type="text/html" id=sellerRegisterTableBar>
					{{#  if(d.registerId == null){ }}
					<a class="layui-btn layui-btn-xs" lay-event="ruzhu">商户入驻</a>
					{{#  }else if(d.registerStatus != '1' && d.registerStatus != '2'){ }}
					<a class="layui-btn layui-btn-xs" lay-event="queryRuzhu">查询入驻结果</a>
					{{#  }else if(d.registerStatus == '1'){ }}
					{{#  if(d.bankCardNo == null){ }}
					<a class="layui-btn layui-btn-xs" lay-event="registerOpen">专户开立</a>
					{{#  } }}
					<a class="layui-btn layui-btn-xs" lay-event="queryRegisterInfo">查询信息</a>
					<a class="layui-btn layui-btn-xs" lay-event="updateRegister">修改信息</a>
					{{#  }else if(d.registerStatus == '2'){ }}
					<a class="layui-btn layui-btn-xs" lay-event="ruzhu">重新入驻</a>
					{{#  } }}


                </script>

</body>
<!-- js -->
<script th:src="@{/js/seller/seller.js}"></script>
</html>